<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{dede:field name='typename'/}-{dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
<meta http-equiv="mobile-agent" content="format=html5; url={dede:global.mcfg_basehost/}{dede:type typeid='0' row=1}[field:typelink/]{/dede:type}">
<link rel="canonical" href="{dede:global.cfg_basehost/}{dede:type typeid='0' row=1}[field:typelink/]{/dede:type}"/>
<link rel="alternate" media="only screen and(max-width:640px)" href="{dede:global.mcfg_basehost/}{dede:type typeid='0' row=1}[field:typelink/]{/dede:type}">
<link href="{dede:global.cfg_basehost/}/css/v2_index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{dede:global.cfg_basehost/}/js/jquery.js"></script>
<script type="text/javascript" src="{dede:global.cfg_basehost/}/system/gzs.ajax.js"></script>
<script type="text/javascript">
function CheckLogintop(){
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/user/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
<script type="text/javascript">
var bForcepc = fGetQuery("dv") == "pc";    
function fBrowserRedirect(){    
    var sUserAgent = navigator.userAgent.toLowerCase();    
    var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";      
    var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";    
    var bIsMidp = sUserAgent.match(/midp/i) == "midp";    
    var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";    
    var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";    
    var bIsAndroid = sUserAgent.match(/android/i) == "android";    
    var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";    
    var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";    
   
    if(bIsIphoneOs || bIsAndroid){    
        var sUrl = location.href;        
        if(!bForcepc){    
            window.location.href = "{dede:global.mcfg_basehost/}{dede:type typeid='0′ row=1}[field:typelink/]{/dede:type}";    
        }    
    }    
    if(bIsMidp||bIsUc7||bIsUc||bIsCE||bIsWM){    
        var sUrl = location.href;        
        if(!bForcepc){    
            window.location.href = "{dede:global.mcfg_basehost/}{dede:type typeid='0′ row=1}[field:typelink/]{/dede:type}";    
        }    
    }    
}    
function fGetQuery(name){//获取参数值    
    var sUrl = window.location.search.substr(1);    
    var r = sUrl.match(new RegExp("(^|&)" + name + "=([^&]*)(&|$)"));    
    return (r == null ? null : unescape(r[2]));    
}    
function fShowVerBlock(){       
    if(bForcepc){    
        document.getElementById("dv_block").style.display = "block";    
    }    
    else{    
        document.getElementById("ad_block").style.display = "block";    
    }    
}    
fBrowserRedirect();    
</script>
<style type="text/css">
.yin{display:none !important;}
.liandian{color:#999;line-height:20px;font-size:14px;padding-bottom:15px;}

/*课程封面图*/
.container{width:1180px;}
.course-cover{background:#fff;padding:20px 0 20px 20px;position:relative;-webkit-box-shadow:0px 1px 2px #bbb;box-shadow:0px 1px 2px #bbb;border-radius:8px;}
.course-thum{float:left;position:relative;}
.course-thum img{width:450px;height:253px;}
.course-info{float:left;width:680px;height:253px;padding-left:25px;position:relative;}
.course-info h1{line-height:32px;color:#333;font-size:24px;padding-bottom:10px;}

/*课程价格/进入学习*/
.course-zj-djl{color:#999;font-size:14px;line-height:20px;padding-bottom:15px;}
.gzs-shoujia{overflow:hidden;}
.gzs-yj-ts{display:inline-block;padding-left:10px;}
.curr-price{float:left;height:42px;font-size:28px;color:#f30;}
.curr-price small{font-size:12px;vertical-align:-3px;}
.curr-price i{vertical-align:-4px;}
.old-price{display:block;line-height:18px;font-size:12px;color:#999;text-decoration:line-through;padding-bottom:2px;}
.fighting-price{display:block;height:18px;line-height:18px;border-radius:7px 7px 7px 0;background:#FF583D;color:#fff;text-align:center;padding:1px 7px;font-size:12px;}
.gzs-ke-purchase{position:absolute;bottom:0;overflow:hidden;}
.gzs-ke-purchase a{width:140px;height:46px;line-height:46px;display:inline-block;text-align:center;color:#fff;font-size:18px;margin-right:15px;border-radius:3px;background:#ff700a;}
.gzs-ke-purchase a:hover{background:#ee6600;color:#fff;}
.huiyuan-mf{background:#f13f13 !important;}
.huiyuan-mf:hover{background:#f93e3e !important;}
.price-mf{color:#2ed25d;font-size:28px;}

/*列表课程内容*/
.course-cover-2{width:1200px;margin:0 auto;margin-top:20px;padding-bottom:50px;}
.course-cover-fl{width:900px;min-height:667px;background:#fff;float:left;border:1px solid #e5e5e5;border-radius:8px;}
.course-cover-fr{width:270px;background:#fff;float:right;border:1px solid #e5e5e5;border-radius:8px;}

/*TAB切换*/
.aui-nav-list-box{overflow:hidden;border-bottom:1px solid #e5e5e5;background:linear-gradient(#fff,#fafafa);border-top-right-radius:8px;border-top-left-radius:8px;}
.aui-nav-list-box ul li{float:left;cursor:pointer;color:#333;height:48px;line-height:48px;border-right:solid 1px #e5e5e5;font-size:16px;}
.aui-nav-list-box ul li span{display:block;padding:0 25px;}
.aui-nav-list-box ul li span:hover{color:#ff700a;}
.aui-nav-list-box .aui-current{color:#ff700a;background:#fff;font-weight:bold;}
.aui-nav-list-item{display:none;}

/*课程详情介绍*/
.yxw-kc-jianjie{padding:25px 25px;}
.yxw-kc-jianjie h3{font-size:18px;color:#333;font-weight:700;margin-bottom:10px;}
.yxw-kc-jianjie p{color:#333;font-size:16px;padding-bottom:20px;line-height:30px;text-align:justify;}
.yxw-kc-jianjie p img{max-width:850px;display:block;margin-top:-20px;}
.yxw-kc-jianjie p a{color:#3f82fc;}
.yxw-kc-jianjie p a:hover{color:#ff700a;text-decoration:underline;}

/*课程目录*/
.task-task-item{position:relative;background:#f4f4f4;;margin:0 25px 20px 25px;display:block;color:#333;padding:0 15px;border-radius:3px;}
.task-task-item:hover{background:#eee;}
.task-tt-zj{color:#999;font-size:14px;overflow:hidden;padding-bottom:10px;}
.task-tt-zj span{display:inline-block;}
.ke-suo{width:36px;height:22px;line-height:22px;text-align:center;border-radius:0 4px 0 4px;display:inline-block;background:#e0e0e0 url({dede:global.mcfg_basehost/}/m-images/yxw-kc-s.png) no-repeat center 3px;background-size:15px auto;text-indent:-9999px;}
.keshikan{height:22px;line-height:22px;padding:0 6px;background:#00b277;border-radius:0 4px 0 4px;font-size:12px;color:#fff;display:inline-block;}
.ke-shijian{margin-left:5px;font-size:14px;color:#999;}
.ke-shijian.tuwen,.ke-shijian.wangpan{display:none;}

/*课程收藏*/
.gzs-ke-title-box{overflow:hidden;}
.u-shoucang{height:30px;position:relative;}
.u-shoucang .shoucang1,.u-shoucang .shoucang2{float:right;width:40px;height:26px;line-height:26px;background:url({dede:global.cfg_basehost/}/images/courseTitle.png) no-repeat 4449px 4449px;background-color:#fff;border:1px solid;border-color:#e1e1e1 #e1e1e1 #c6c6c6;font-size:12px;color:#333;cursor:pointer;}
.u-shoucang .shoucang1{background-position:-53px -4px;}
.u-shoucang .shoucang2{background-position:-53px -59px;}
.mui-toast-container{position:fixed;z-index:9999;bottom:200px;width:100%;-webkit-transition:opacity .8s;transition:opacity .8s;opacity:0;}
.mui-toast-container.mui-active{opacity:1;}
.mui-toast-message{width:120px;margin:5px auto;padding:10px 5px;text-align:center;color:#fff;border-radius:5px;background-color:#606060;font-size:12px;}

/*右边信息*/
.course-cover-fr h3{color:#333;font-size:16px;padding:0 25px;line-height:50px;border-bottom:1px solid #e5e5e5;background:linear-gradient(#fff,#fafafa);border-top-right-radius:8px;border-top-left-radius:8px;}
.course-cover-fr ul{padding:10px 25px 20px;}
.course-cover-fr li{position:relative;border-bottom-right-radius:8px;border-bottom-left-radius:8px;}
.course-cover-fr li img{width:220px;height:124px;display:block;border-radius:5px;}
.course-cover-fr li .link{display:block;}
.course-cover-fr li .title{line-height:20px;color:#333;font-size:14px;display:block;padding:10px 0 6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.course-cover-fr .price{color:#f30;font-size:16px;}
.course-cover-fr .price i{font-size:12px;}
.course-cover-fr .price small{font-size:12px;color:#999;text-decoration:line-through;}
.course-cover-fr .sub-hot{font-size:12px;color:#999;padding-left:17px;height:20px;line-height:20px;background:url({dede:global.cfg_basehost/}/images/icon-hot.png) left 3px no-repeat;}

/*推广*/
input#foo{width:400px;}
#goodcover{display:none;position:fixed;top:0%;left:0%;width:100%;height:100%;background-color:black;z-index:1001;opacity:0.5;}
#code{width:720px;background-color:#fff;position:fixed;display:none;top:50%;left:50%;margin-left:-360px;z-index:1002;margin-top:-219px;box-sizing:border-box;}
.goodtxt{padding:20px 10px;}
.goodtxt p{line-height:30px;font-size:16px;color:#333;padding-left:12px;}
#closebt{width:26px;height:26px;line-height:26px;display:block;position:absolute;right:10px;top:10px;background:#fff;border-radius:50%;color:#000;font-size:26px;text-align:center;font-family:Arial;opacity: .2;}
#closebt:hover,#closebt:focus{color:#000;cursor:pointer;filter:alpha(opacity=50);opacity:.5}
.course-btn-qun:hover{color:#ff700a !important;border-color:#ff700a !important;}
.popularize{height:130px;padding:0;border-bottom:none;position:relative;background:#ddd url({dede:global.cfg_basehost/}/images/popularize.jpg) no-repeat;background-size:100%;}
#ewmsrc{width:260px;display:block;margin:0 auto;padding-bottom:18px;}

/*我的推广链接*/
.yxw-gt-box{overflow:hidden;opacity:0;}
.yxw-gt-box #foo{width:100%;line-height:50px;background-color:#fff;color:#ff700a;font-size:14px;padding:0 15px;border:none;cursor:pointer;box-sizing:border-box;}
.yxw-tglj{width:120px;margin:0 auto;text-align:center;height:36px;line-height:36px;background:#0c6069;margin-bottom:30px;border-radius:3px;}
.yxw-tglj a{display:block;color:#fff;font-size:14px;}
.yxw-tglj:hover{background-color:#000;color:#fff;}

/*限时特价*/
.specials-count-down.count-down1{display:none;}
.specials-count-down{height:50px;line-height:50px;overflow:hidden;}
#time-item{float:right;font-size:14px;color:#666;height:42px;line-height:42px;}
#time-item .flash-sale-text{display:inline-block;}
#time-item span{color:#f30;display:inline-block;padding-left:8px;font-weight:700;}
#time-item em{color:#666;padding-left:8px;}

/*推广返佣规则*/
.gzs-fanyong{position:absolute;width:30px;height:30px;right:60px;background:url({dede:global.cfg_basehost/}/images/hongbao.png) no-repeat;background-size:30px auto;cursor:pointer;}
</style>
</head>
<body>

{dede:include filename="head.htm"/}

<!-- 面包削 -->
<div class="mianbaoxiao clearfix"><div class="mianbao-min"><a href="{dede:global.cfg_basehost/}/courses/" rel="nofollow">全部课程</a> > <a href="{dede:global.cfg_basehost/}{dede:field.fenlei function='GetTypeDeurl(@me)'/}" rel="nofollow">{dede:field.fenlei function="jjGetTypename(@me)"/}</a> > {dede:type}[field:typename /]{/dede:type}</div></div>
<!-- 面包削End -->


<!-- 列表 -->
<div class="course-head">
<div class="course-cover container">

<!-- 课程封面图 -->
<div class="course-thum"><img class="course-img-bg lazy-img" data-original="{dede:field.bigpic function='mstrone(@me)'/}"></div>
<!-- 课程封面图 End -->


<div class="course-info">

<div class="gzs-ke-title-box">
<div class="gzs-ke-title" style="width:540px;float:left">
<h1>{dede:field.typename/}</h1>
<p class="liandian">{dede:field.namegk/}</p>
<div class="course-zj-djl">
<span class="jishu" style="padding-right:10px;">共{dede:type}[field:id function='jjKeCount(@me)'/]{/dede:type}集全</span>
<span class="xuexicisu">{dede:field.id function="JJgetCliak(@me)"/}次学习</span>
</div>
</div>
<!-- 推广返现 -->
{dede:field.array runphp='yes'}
global $cfg_dazhe,$cfg_zhekou,$cfg_keyjbl,$mcfg_basehost;
$yuanprice = @me['price'];
if($yuanprice != 0){
if($cfg_dazhe == 'Y'){
$dazheprice = @me['price'] / 100 * $cfg_zhekou;
$yongjin = $cfg_keyjbl / 100 * $dazheprice;
}else{
$yongjin = $cfg_keyjbl / 100 * @me['price'];
}
@me = "<div class=\"gzs-fanyong\" id=\"ClickMe2\" title=\"推广返现({$yongjin}元)\"></div>";
}
else{
@me = "<div class=\"gzs-fanyong\" id=\"ClickMe2\" title=\"推广返现\"></div>";
}
{/dede:field.array}
<!-- 收藏课程 -->
<a class="u-shoucang fr" title="课程收藏"><i class="shoucang1" id="toastBtn"></i></a>
</div>


<!-- 课程价格 -->
{dede:field.array runphp='yes'}
global $cfg_dazhe,$kc_miaosha,$cfg_zhekou,$cfg_dqtime,$cfg_tejiatishi;
$time = time();
$timestamp = strtotime($cfg_dqtime);
if(!empty(@me['price']))
{
if($cfg_dazhe == 'Y' && $timestamp > $time ){
@me = '<div class="price needBuy yin"><div class="gzs-shoujia"><span class="curr-price"><small>折扣后 ￥</small><i>'.@me['price'] / 100 * $cfg_zhekou.'</i><div class="gzs-yj-ts"><em class="old-price">原价￥'.@me['price'].'</em><em class="fighting-price">'.$cfg_tejiatishi.'</em></div></span><div id="time-item" class="time"><div class="flash-sale-text">距离结束仅剩：</div><span id="t_d">00</span><span id="t_h">00</span><span id="t_m">00</span><span id="t_s">00</span></div></div></div>';}
else{@me = '<div class="needBuy yin"><div class="gzs-shoujia"><span class="curr-price"><small style="font-size:14px;vertical-align:1px;margin-right:3px;">¥</small>'.@me['price'].'</span></div></div>';}}
else{@me = '<div class="gzs-shoujia"><span class="price-mf">免费</span></div>';}
{/dede:field.array}
<!-- 课程价格 End -->



<!-- 课程购买 -->
{dede:field.array runphp='yes'}
global $dsql, $cfg_basehost;
require_once(DEDEINC.'/memberlogin.class.php');
$cfg_ml = new MemberLogin();
$typeid = @me['typeid'];
$price = @me['price'];
$row = $dsql->GetOne("SELECT id FROM `#@__arctiny` WHERE arcrank>-1 AND typeid=$typeid ORDER BY id ASC LIMIT 1");
$arcrow = GetOneArchive($row['id']);
$row['arcurl'] = $arcrow['arcurl'];
if(!empty($price))
{
$result = "<div class=\"gzs-ke-purchase\">";
$sorow = $dsql->GetOne("SELECT * FROM `#@__shops_orders` WHERE state=1 AND userid=$cfg_ml->M_ID AND pid=$typeid");
if(($cfg_ml->M_ID && $sorow) || ($cfg_ml->M_ID && $cfg_ml->M_Rank==500))
{
$result .= "<a href=\"{$cfg_basehost}{$row['arcurl']}\" class=\"link vipxian\" target=\"_blank\">开始学习</a>";}
else
{
$result .= "<a href=\"{$cfg_basehost}/user/buyke.php?tid={$typeid}\" target=\"_blank\">立即购买</a>";
$result .= "<a href=\"{$cfg_basehost}/user/buyhui.php\" class=\"huiyuan-mf\" target=\"_blank\">SVIP免费学</a>";}
$result .= "</div>";
@me = $result;
}
else
{
$result = "<div class=\"gzs-ke-purchase\">";
$result .= "<a href=\"{$cfg_basehost}{$row['arcurl']}\" target=\"_blank\">开始学习</a>";
$result .= "</div>";
@me = $result;
}
{/dede:field.array}
<!-- 课程购买 End -->

</div>
</div>
</div>
<!-- 列表 End -->


<!-- 课程列表内容 -->
<div class="course-head">
<div class="course-cover-2 clearfix">

<!-- 左边信息 -->
<div class="course-cover-fl">
<div class="aui-nav-content-box">

<!-- TAB -->
<div class="aui-nav-list-box"><ul><li class="aui-current"><span>课程目录</span></li><li><span>课程详情</span></li></ul></div>
<!-- TAB End -->

<!-- 切换 -->
<div class="aui-nav-list-tab">
<!-- 课程目录 -->
<div class="aui-nav-list-item" style="display:block;padding:20px 0;">
{dede:list pagesize='200' orderby='id' orderway='asc'}
<div class="task-task-list">
<a href="[field:global.cfg_basehost/][field:arcurl/]" class="task-task-item needBuy_kelist" rank="[field:arcrank/]">
<div class="task-tt" style="overflow:hidden;height:46px;line-height:50px;"><span class="ke-title" title="[field:fulltitle/]"><img src="[field:global.mcfg_basehost/]/m-images/ke-bs-[field:source/].png" style="position:relative;top:2px;width:25px;height:15px;display:inline-block;margin-right:5px;">[field:global.autoindex/].[field:fulltitle/]</span>
[field:array runphp='yes'] 
if(@me['shorttitle']=='')
{ 
@me = '

'; 
}
else{ 
@me = '<span class="ke-shijian">('.@me['shorttitle'].')</span>';}
[/field:array]
</div><div class="task-tt-zj"><span class="yxw-kc-s needBuy yin"><em class="ke-suo">付费</em></span></div></a></div>
{/dede:list}
</div>
<!-- 课程目录 End -->


<!-- 课程详情 -->
<div class="aui-nav-list-item" style="padding:20px 0;"><div class="yxw-kc-jianjie">{dede:field.content/}</div></div>
<!-- 课程详情 End -->


</div>
<!-- 切换 End -->


</div>
</div>
<!-- 左边信息 End -->



<!-- 右边信息 -->
<div class="course-cover-fr">
<h3>{dede:type typeid='15'}[field:typename/]{/dede:type}</h3>
<ul>
{dede:sql sql="select * from #@__arctype where reid = '18' order by id desc limit 5"}
<li>
<a href="[field:global.cfg_basehost/][field:id function='GetTypeDeurl(@me)'/]" class="link" rel="nofollow" title="[field:typename/]"><img class="course-img-bg lazy-img" data-original="[field:bigpic function='mstrone(@me)'/]"></a>
<p><a href="[field:typelink/]" class="title" title="[field:typename/]">[field:typename/]</a></p>
<div class="sub_title" style="display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;">
[field:array runphp='yes']
global $cfg_dazhe,$cfg_zhekou,$cfg_dqtime;
$oprice = @me['price'];
$time = time();
$timestamp = strtotime($cfg_dqtime);
if(!empty($oprice))
{
if($cfg_dazhe == 'Y' && $timestamp > $time)
{
$dzprice = $oprice / 100 * $cfg_zhekou;
@me = "<span class=\"price\"><i>￥</i>{$dzprice} <small>￥{$oprice}</small></span>";}
else{
@me = "<span class=\"price\"><i>￥</i>{$oprice}</span>";}
}else{
@me = "<span class=\"ke-mianfei\">免费</span>";}
[/field:array]
<span class="sub-hot">[field:id function="JJgetCliak(@me)"/]</span>
</div>
</li>
{/dede:sql}
</ul>
</div>
<!-- 右边信息 End -->


</div>
</div>
<!-- 课程列表内容 End -->

{dede:include filename="footer.htm"/}
{dede:include filename="wz-tongji.htm"/}

<script src="{dede:global.mcfg_basehost/}/m-js/mui.min.js"></script>
<script type="text/javascript" charset="utf-8">
mui.init({
swipeBack: true
});
document.getElementById("toastBtn").addEventListener('tap', function() {
});
</script>

<script>
function GetMemRank(){
    $.post("{dede:global.cfg_basehost/}/user/jjajax.php",{a:"GetRank",tid:"{dede:field.typeid/}"},function(result){
            if(result == 'ok'){
            $(".vipxian").removeClass("yin");
            $(".aui-nav-list-box2 ul li").eq(1).click();
            }else{      
            $(".list-kc-goumai").removeClass("yin");  
            $(".needBuy").removeClass("yin");
            $(".needBuy_kelist").each(function(index, element) {
                if($(element).attr("rank") == '0' ){
                    $(element).find(".needBuy").removeClass("yxw-kc-s");
                    $(element).find(".needBuy").html('<em class="keshikan">免费</em>');   
                    if(result == 'notlogin'){
                    $(element).attr("href","{dede:global.cfg_basehost/}/user/");
                    }
                }else{
                $(element).attr("href","javascript:;");
                }
            });                                 
        } 
    }); 
}
GetMemRank();

function GetTypeStow(){
    $.post("{dede:global.cfg_basehost/}/user/jjajax.php",{a:"GetTypeStow",tid:"{dede:field.typeid/}"},function(result){
        if(result == 'ok'){
            $("#toastBtn").html('');    
            $("#toastBtn").addClass("shoucang2");
        }else{
            $("#toastBtn").html('');
        }
    }); 
}
$("#toastBtn").click(function(){
    $.post("{dede:global.cfg_basehost/}/user/jjajax.php",{a:"typestow",tid:"{dede:field.typeid/}"},function(result){
            if(result == 'notlogin'){
            window.location.href = "{dede:global.cfg_basehost/}/user/";
            }else if(result == 'ok'){
                $("#toastBtn").html('');
                $("#toastBtn").removeClass("shoucang1");
                $("#toastBtn").addClass("shoucang2");
                mui.toast('可在"我的收藏"查看');
            }else{
                $("#toastBtn").html('');
                $("#toastBtn").addClass("shoucang1");
                $("#toastBtn").removeClass("shoucang2");    
                mui.toast('您已取消收藏');
            }
    }); 

})
GetTypeStow();
</script>

<script type="text/javascript"> 
//tab切换
$(function(){
$('.aui-nav-list-box ul li').click(function(){
$(this).addClass('aui-current').siblings().removeClass('aui-current');
$('.aui-nav-list-tab>div:eq('+$(this).index()+')').show().siblings().hide();
})
});
</script>

<!-- 推广提示 -->
{dede:php}
require_once(DEDEMEMBER."/config.php");
$mid = $cfg_ml->M_ID;
if(!$mid){
echo '<div id="goodcover"></div><div id="code"><div class="popularize"></div><div class="goodtxt"><p>注册账号后，即可获得自己的专属推广链接。</p><p>把您的推广链接发送到任何地方，对方购买后，您将收到课程售价的<span style="color:#f30">'.$cfg_keyjbl.'%</span>作为推广佣金回报。</p><p>赶快注册一个账号进行推广赚钱吧！</p><a href="javascript:void(0)" id="closebt">×</a></div><div class="yxw-tglj" style="width:100px"><a href="'.$cfg_basehost.'/user/" class="gzs-btn">登录/注册</a></div></div>';
}else{
echo '<div id="goodcover"></div><div id="code"><div class="popularize"></div><div class="goodtxt"><p>感谢您把本站的链接，推荐给您的朋友。</p><p>您在本站的专属推广链接是：<input id="foo" value="'.$cfg_basehost.'/u_'.$mid.'"></p><p>把本链接发送到任何地方，对方购买后，您将收到课程售价的<span style="color:#f30">'.$cfg_keyjbl.'%</span>作为推广佣金回报。</p><a href="javascript:void(0)" id="closebt">×</a></div><div class="yxw-tglj"><a href="javascript:void(0)" data-clipboard-target="#foo" aria-label="复制成功，快去推广赚钱吧！" class="gzs-btn">复制推广链接</a></div></div>';}
{/dede:php}
<!-- 推广提示 End -->
<script type="text/javascript">
$(function() {
    $('#ClickMe').click(function() {
        $('#code').center();
        $('#goodcover').show();
        $('#code').fadeIn();
    });
    $('#ClickMe2').click(function() {
        $('#code').center();
        $('#goodcover').show();
        $('#code').fadeIn();
    });
    $('#closebt').click(function() {
        $('#code').hide();
        $('#goodcover').hide();
    });
    $('#goodcover').click(function() {
        $('#code').hide();
        $('#goodcover').hide();
    });
    jQuery.fn.center = function(loaded) {
        var obj = this;
        body_width = parseInt($(window).width());
        body_height = parseInt($(window).height());
        block_width = parseInt(obj.width());
        block_height = parseInt(obj.height());

        left_position = parseInt((body_width / 2) - (block_width / 2) + $(window).scrollLeft());
        if (body_width < block_width) {
            left_position = 0 + $(window).scrollLeft();
        };

        top_position = parseInt((body_height / 2) - (block_height / 2) + $(window).scrollTop());
        if (body_height < block_height) {
            top_position = 0 + $(window).scrollTop();
        };

        if (!loaded) {

            obj.css({
                'position': 'fixed'
            });
            $(window).bind('resize', function() {
                obj.center(!loaded);
            });
            $(window).bind('scroll', function() {
                obj.center(!loaded);
            });

        } else {
            obj.stop();
            obj.css({
              
            });
            obj.animate({
                
            }, 200, 'linear');
        }
    }

})
</script>


<script src="{dede:global.mcfg_basehost/}/m-js/clipboard.min.js"></script>
<script>
var clipboard = new Clipboard('.gzs-btn');
clipboard.on('success', function(e) {
    var msg = e.trigger.getAttribute('aria-label');
    alert(msg);
    console.info('Action:', e.action);
    console.info('Text:', e.text);
    console.info('Trigger:', e.trigger);
    e.clearSelection();
});
</script>


<script type="text/javascript" src="{dede:global.cfg_basehost/}/js/jquery.lazyload.js"></script>
<script type="text/javascript">
!function(){var n,f={};f.curr=1,n=20;var a=function(){},c=function(){$(".lazy-img").lazyload({effect:"fadeIn"})},i=function(){a(),c()};i()}();
</script>


<!-- 倒计时特效 -->
<script type="text/javascript">
function GetRTime() {
var EndTime = new Date('{dede:global.cfg_dqtime/}');
var NowTime = new Date();
var t = EndTime.getTime() - NowTime.getTime();
var d = Math.floor(t / 1000 / 60 / 60 / 24);
var h = Math.floor(t / 1000 / 60 / 60 % 24);
var m = Math.floor(t / 1000 / 60 % 60);
var s = Math.floor(t / 1000 % 60);
// 将时、分、秒转换为两位数
h = ("0" + h).slice(-2);
m = ("0" + m).slice(-2);
s = ("0" + s).slice(-2);
document.getElementById("t_d").innerHTML = d + "<em>天</em>";
document.getElementById("t_h").innerHTML = h + "<em>时</em>";
document.getElementById("t_m").innerHTML = m + "<em>分</em>";
document.getElementById("t_s").innerHTML = s + "<em>秒</em>";
}
setInterval(GetRTime, 0);
</script>
<!-- 倒计时特效 End -->


</body>
</html>